package net.wanho.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data

public class PurchaseaddDTO {
    /**
     "productId": 27,
     "productName": "西瓜2号",
     "storeId": 1,
     "storeName": "西安仓库",
     "supplyId": 2,
     "supplyName": "龙泉绿欧食品有限公司",
     "placeId": 3,
     "placeName": "陕西",
     "buyNum": "20",
     "buyUser": "张三",
     "phone": "13888888888",
     "brandId": 1,
     "brandName": "东东果蔬",
     "productNum": "xg9528",
     "productInvent": 100,
     "typeId": 6,
     "typeName": "水果2",
     "unitId": 2,
     "unitName": "个",
     "introduce": "皮薄保甜",
     "upDownState": "1",
     "inPrice": 3,
     "salePrice": 5,
     "memPrice": 4,
     "createTime": "2023-04-08 11:19:38",
     "updateTime": "2023-04-24 15:48:59",
     "createBy": 1,
     "updateBy": 31,
     "imgs": "http://localhost:3333/warehouse/statics/2024-09-13/664300c3-e21e-4867-a256-bee0d5c74cfe.png",
     "productDate": "2023-04-09",
     "suppDate": "2023-06-05",
     "isOverDate": null
     */
    private Integer productId;
    private String productName;
    private Integer storeId;
    private String storeName;
    private Integer supplyId;
    private String supplyName;
    private Integer placeId;
    private String placeName;
    private Integer buyNum;
    private Integer factBuyNum;
    private String buyUser;
    private String phone;
    private Integer brandId;
    private String brandName;
    private String productNum;
    private Integer productInvent;
    private Integer typeId;
    private String typeName;
    private Integer unitId;
    private String unitName;
    private String introduce;
    private String upDownState;
    private Double inPrice;
    private Double salePrice;
    private Double memPrice;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    private Integer createBy;
    private Integer updateBy;
    private String imgs;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date productDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date suppDate;
    private String isOverDate;
    private String isIn;
}
